<?php

/**
 * Pagos form base class.
 *
 * @package    tercermilenio
 * @subpackage form
 * @author     Your name here
 */
class BasePagosForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'pag_id'     => new sfWidgetFormInputHidden(),
      'pag_nombre' => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'pag_id'     => new sfValidatorPropelChoice(array('model' => 'Pagos', 'column' => 'pag_id', 'required' => false)),
      'pag_nombre' => new sfValidatorString(array('max_length' => 100)),
    ));

    $this->widgetSchema->setNameFormat('pagos[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Pagos';
  }


}
